// NSQ 安装 https://nsq.io/deployment/installing.html
// 这里不做例子了由于本人电脑太老了 装不上，但是有腾讯文档可以参考，
/*
 * @Author: your name
 * @Date: 2020-08-11 21:49:42
 * @LastEditTime: 2020-08-11 21:52:32
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \day01\demo7\main.go
 */
package main

import "fmt"

func funcA() {
	fmt.Println("func A")
}
func funcB() {
	defer func() {
		err := recover()
		if err != nil {
			fmt.Println("recover in B")
		}
	}()
	panic("panic B")
}
func funcC() {
	fmt.Println("func C")
}
func main() {

	funcA()
	funcB()
	funcC()
}
